package com.woniuxy.service.Impl;

import com.ruoyi.common.core.domain.AjaxResult;
import com.woniuxy.dao.DocsUploadDao;
import com.woniuxy.entity.DocsUpload;
import com.woniuxy.service.DocsUploadService;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author Lawrence Z
 */
@Service
@MapperScan("com.woniuxy.dao")
public class DocsUploadServiceImpl implements DocsUploadService {
  @Resource
    DocsUploadDao docsUploadDao;

    @Override
    public AjaxResult uploadFile(DocsUpload docsUpload) {
        int i = docsUploadDao.uploadFile(docsUpload);
        if (i>0){
            return new AjaxResult(200,"提交成功!");

        }else{
            return  new AjaxResult(500,"提交失败");
        }
    }
}
